package com.xzy.urp.service;

import com.xzy.urp.pojo.entity.CourseSelection;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xzy.urp.pojo.vo.CourseSelectableVO;
import com.xzy.urp.pojo.vo.GradeVO;
import com.xzy.urp.pojo.vo.StudentSelectVO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xzy
 * @since 2022-02-17
 */
public interface CourseSelectionService extends IService<CourseSelection> {

    List<CourseSelectableVO> getSelectableList(StudentSelectVO studentSelectVO);

    List<CourseSelectableVO> getSelectedList(Integer semester,Long sId);

    Boolean doSelect (StudentSelectVO studentSelectVO,Long cId) throws Exception;

    Boolean cancelSelect (StudentSelectVO studentSelectVO,Long cId);

    Boolean startOperation(Integer semester);

    Boolean endOperation();

    void gradeEntry(Long sId ,Double grade, Integer CId);

    List<GradeVO> ListGrade(Integer cId);


}
